/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.supinfo.suptracking.service;

import com.supinfo.suptracking.dao.GpsPositionHistoryDao;
import com.supinfo.suptracking.entity.Car;
import com.supinfo.suptracking.entity.Gpspositionhistory;
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.Stateless;

/**
 *
 * @author Fabien, Jérémy, Ludovic, Brice
 */

@Stateless
public class GpsPositionHistoryService {
    
    @EJB
    private GpsPositionHistoryDao gpsPositionHistoryDao;
    
    public  List<Gpspositionhistory> processGetAllPositionHistoryByCar(Car car) {
        return gpsPositionHistoryDao.getAllPositionHistoryByCar(car);
    }
    
    public void processdelPositionHistory(Long id) {
        gpsPositionHistoryDao.delPositionHistory(id);
    }
    
    public void processAddPositionHistory(Gpspositionhistory gps){
        gpsPositionHistoryDao.addPositionHistory(gps);
    }
}
